﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 采购到委外收货传输对象 Copy DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class CopyOfPOToRcvTransDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public CopyOfPOToRcvTransDTOData()
		{
			initData();
		}
		private void initData()
		{
		
		
		
					POLineNo= 0; 
							POShipLineNo= 0; 
				
		
		
		
		
		
		
		

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        	        			if (this.TransQty != null) 
			{
				this.TransQty.DoSerializeKeyList(dict);
			}
	        	        	        	        	        			if (this.DescFlexSegments != null) 
			{
				this.DescFlexSegments.DoSerializeKeyList(dict);
			}
	        	        			if (this.RcvLineInfoDTO != null) 
			{
				this.RcvLineInfoDTO.DoSerializeKeyList(dict);
			}
	        	        	        			if (this.POToRcvDocDTO != null) 
			{
				this.POToRcvDocDTO.DoSerializeKeyList(dict);
			}
	        			if (this.ItemMaster != null) 
			{
				this.ItemMaster.DoSerializeKeyList(dict);
			}

		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public CopyOfPOToRcvTransDTOData(  System.String businessDate  , ufida.u9.ait.openapi.CopyOfDoubleQuantityData transQty  , System.String pONo  , System.Int32 pOLineNo  , System.Int32 pOShipLineNo  , Int64 pOShipLineKey  , ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData descFlexSegments  , System.String memo  , ufida.u9.ait.openapi.CopyOfRcvLineInfoDTOData rcvLineInfoDTO  , System.String arrivedTime  , System.String docNo  , ufida.u9.ait.openapi.POToRcvDocDTOData pOToRcvDocDTO  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData itemMaster  )
		{
			initData();
			this.BusinessDate = businessDate;
			this.TransQty = transQty;
			this.PONo = pONo;
			this.POLineNo = pOLineNo;
			this.POShipLineNo = pOShipLineNo;
			this.POShipLineKey = pOShipLineKey;
			this.DescFlexSegments = descFlexSegments;
			this.Memo = memo;
			this.RcvLineInfoDTO = rcvLineInfoDTO;
			this.ArrivedTime = arrivedTime;
			this.DocNo = docNo;
			this.POToRcvDocDTO = pOToRcvDocDTO;
			this.ItemMaster = itemMaster;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 日期
		/// 采购到委外收货传输对象 Copy.Misc.日期
		/// </summary>
		private System.String m_businessDate ;
		[DataMember(IsRequired=false)]
		public System.String BusinessDate
		{
			get	
			{	
				return m_businessDate ;
			}
			set	
			{	
				m_businessDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 收货数量
		/// 采购到委外收货传输对象 Copy.Misc.收货数量
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfDoubleQuantityData m_transQty ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfDoubleQuantityData TransQty
		{
			get	
			{	
				return m_transQty ;
			}
			set	
			{	
				m_transQty = value ;	
			}
		}
			
		

		/// <summary>
		/// 订单号
		/// 采购到委外收货传输对象 Copy.Misc.订单号
		/// </summary>
		private System.String m_pONo ;
		[DataMember(IsRequired=false)]
		public System.String PONo
		{
			get	
			{	
				return m_pONo ;
			}
			set	
			{	
				m_pONo = value ;	
			}
		}
			
		

		/// <summary>
		/// 采购订单行号
		/// 采购到委外收货传输对象 Copy.Misc.采购订单行号
		/// </summary>
		private System.Int32 m_pOLineNo ;
		[DataMember(IsRequired=false)]
		public System.Int32 POLineNo
		{
			get	
			{	
				return m_pOLineNo ;
			}
			set	
			{	
				m_pOLineNo = value ;	
			}
		}
			
		

		/// <summary>
		/// 采购订单计划行号
		/// 采购到委外收货传输对象 Copy.Misc.采购订单计划行号
		/// </summary>
		private System.Int32 m_pOShipLineNo ;
		[DataMember(IsRequired=false)]
		public System.Int32 POShipLineNo
		{
			get	
			{	
				return m_pOShipLineNo ;
			}
			set	
			{	
				m_pOShipLineNo = value ;	
			}
		}
			
		private UFSoft.UBF.Business.BusinessEntity.EntityKey m_pOShipLineKey_SKey ;
		/// <summary>
		/// 采购订单计划行key 序列化Key属性。（传递跨组织序列列字段）
		/// 采购到委外收货传输对象 Copy.Misc.采购订单计划行key
		/// </summary>
		[DataMember(IsRequired=false)]
		public UFSoft.UBF.Business.BusinessEntity.EntityKey POShipLineKey_SKey
		{
			get 
			{
				return m_pOShipLineKey_SKey ;					
			}
			set
			{
				m_pOShipLineKey_SKey =value;	
			}
		}


		/// <summary>
		/// 采购订单计划行key
		/// 采购到委外收货传输对象 Copy.Misc.采购订单计划行key
		/// </summary>
		[DataMember(IsRequired=false)]
		public Int64 POShipLineKey
		{
			get	
			{	
				if (POShipLineKey_SKey == null)
					return UFSoft.UBF.Business.Entity.EmptyObjectValue ;
				else
					return POShipLineKey_SKey.ID ;
			}
			set	
			{	
				if (value == 0 || value == UFSoft.UBF.Business.Entity.EmptyObjectValue )
					POShipLineKey_SKey = null ;
				else
				{
					if (POShipLineKey_SKey == null )
						POShipLineKey_SKey = new UFSoft.UBF.Business.BusinessEntity.EntityKey(value,"UFIDA.U9.PM.PO.POShipLine") ;
					else
						POShipLineKey_SKey.ID = value ;
				}
			}
		}
			
		

		/// <summary>
		/// 弹性域
		/// 采购到委外收货传输对象 Copy.Misc.弹性域
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData m_descFlexSegments ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData DescFlexSegments
		{
			get	
			{	
				return m_descFlexSegments ;
			}
			set	
			{	
				m_descFlexSegments = value ;	
			}
		}
			
		

		/// <summary>
		/// 备注
		/// 采购到委外收货传输对象 Copy.Misc.备注
		/// </summary>
		private System.String m_memo ;
		[DataMember(IsRequired=false)]
		public System.String Memo
		{
			get	
			{	
				return m_memo ;
			}
			set	
			{	
				m_memo = value ;	
			}
		}
			
		

		/// <summary>
		/// 收货行信息
		/// 采购到委外收货传输对象 Copy.Misc.收货行信息
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfRcvLineInfoDTOData m_rcvLineInfoDTO ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfRcvLineInfoDTOData RcvLineInfoDTO
		{
			get	
			{	
				return m_rcvLineInfoDTO ;
			}
			set	
			{	
				m_rcvLineInfoDTO = value ;	
			}
		}
			
		

		/// <summary>
		/// 到货时间
		/// 采购到委外收货传输对象 Copy.Misc.到货时间
		/// </summary>
		private System.String m_arrivedTime ;
		[DataMember(IsRequired=false)]
		public System.String ArrivedTime
		{
			get	
			{	
				return m_arrivedTime ;
			}
			set	
			{	
				m_arrivedTime = value ;	
			}
		}
			
		

		/// <summary>
		/// 收货单号
		/// 采购到委外收货传输对象 Copy.Misc.收货单号
		/// </summary>
		private System.String m_docNo ;
		[DataMember(IsRequired=false)]
		public System.String DocNo
		{
			get	
			{	
				return m_docNo ;
			}
			set	
			{	
				m_docNo = value ;	
			}
		}
			
		

		/// <summary>
		/// 收货单拉单DTO
		/// 采购到委外收货传输对象 Copy.Misc.收货单拉单DTO
		/// </summary>
		private ufida.u9.ait.openapi.POToRcvDocDTOData m_pOToRcvDocDTO ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.POToRcvDocDTOData POToRcvDocDTO
		{
			get	
			{	
				return m_pOToRcvDocDTO ;
			}
			set	
			{	
				m_pOToRcvDocDTO = value ;	
			}
		}
			
		

		/// <summary>
		/// 料品
		/// 采购到委外收货传输对象 Copy.Misc.料品
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_itemMaster ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ItemMaster
		{
			get	
			{	
				return m_itemMaster ;
			}
			set	
			{	
				m_itemMaster = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																										
		#endregion 
	} 	
}
